//
//  ZCXGifModel.m
//  LoveOfPet
//
//  Created by dllo on 15/11/21.
//  Copyright © 2015年 孔维. All rights reserved.
//

#import "ZCXGifModel.h"

@implementation ZCXGifModel
- (void)dealloc{
    [_item release];
    [_title release];
    [_mainPicPath release];
    [super dealloc];
}

- (id)initWithDictionary:(NSDictionary *)dictionary{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
+ (ZCXGifModel *)ZCXGifModelWithdictionary:(NSDictionary *)dictionary{
    ZCXGifModel *gif = [[ZCXGifModel alloc]initWithDictionary:dictionary];
    return [gif autorelease];
}
- (void)setValue:(id)value forKey:(NSString *)key{
    if ([key isEqualToString:@"itemView"]) {
        self.item = [ZCXitemViewModel ZCXitemViewModelWithDictionary:value];
    }else if([key isEqualToString:@"title"]){
        self.title = value;
    }else if ([key isEqualToString:@"mainPicPath"]){
        self.mainPicPath = value;
    }
    
    
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}
@end
